package com.qidianit.mes.masterdata.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qidianit.mes.common.pojo.MesResult;
import com.qidianit.mes.pojo.Workshop;

/**
 * @author 戴着假发的程序员
 * @company 起点编程
 * @date 2025/8/1 10:13
 * @description
 */
public interface WorkshopService {
    /**
     *
     * @param workshop 封装查询条件
     * @param pageNum 查询页码
     * @param pageSize 每页大小
     * @return
     */
    MesResult<Page<Workshop>> getWorkshopList( Workshop workshop,int pageNum,int pageSize);

    /**
     *
     * @param workshop
     * @return
     */
    MesResult<Workshop> saveWorkshop(Workshop workshop);

    /**
     *
     * @param id
     * @return
     */
    MesResult<Workshop> getWorkshopById(Integer id);
    /**
     * 删除
     * @param id
     * @return
     */
    MesResult<Workshop> deleteWorkshop(Integer id);

    /**
     * 修改
     * @param workshop
     * @return
     */
    MesResult<Workshop> updateWorkshop(Workshop workshop);

    /**
     * 批量删除
     * @param ids
     * @return
     */
    MesResult deleteWorkshopByIds(Integer [] ids);
}
